package com.ly.pojo;

import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

public class SysDept {

  private Long deptId;
  private Long parentId;
  private String ancestors;
  private String deptName;
  private Long orderNum;
  private String leader;
  private String phone;
  private String email;
  private String status;
  private String delFlag;
  private String createBy;
  @DateTimeFormat(pattern = "yyyy-MM-dd")
  private Date createTime;
  private String updateBy;
  @DateTimeFormat(pattern = "yyyy-MM-dd")
  private Date updateTime;

  public SysDept() {
  }

  public SysDept(Long deptId, Long parentId, String ancestors, String deptName, Long orderNum, String leader, String phone, String email, String status, String delFlag, String createBy, Date createTime, String updateBy, Date updateTime) {
    this.deptId = deptId;
    this.parentId = parentId;
    this.ancestors = ancestors;
    this.deptName = deptName;
    this.orderNum = orderNum;
    this.leader = leader;
    this.phone = phone;
    this.email = email;
    this.status = status;
    this.delFlag = delFlag;
    this.createBy = createBy;
    this.createTime = createTime;
    this.updateBy = updateBy;
    this.updateTime = updateTime;
  }

  /**
   * 获取
   * @return deptId
   */
  public Long getDeptId() {
    return deptId;
  }

  /**
   * 设置
   * @param deptId
   */
  public void setDeptId(Long deptId) {
    this.deptId = deptId;
  }

  /**
   * 获取
   * @return parentId
   */
  public Long getParentId() {
    return parentId;
  }

  /**
   * 设置
   * @param parentId
   */
  public void setParentId(Long parentId) {
    this.parentId = parentId;
  }

  /**
   * 获取
   * @return ancestors
   */
  public String getAncestors() {
    return ancestors;
  }

  /**
   * 设置
   * @param ancestors
   */
  public void setAncestors(String ancestors) {
    this.ancestors = ancestors;
  }

  /**
   * 获取
   * @return deptName
   */
  public String getDeptName() {
    return deptName;
  }

  /**
   * 设置
   * @param deptName
   */
  public void setDeptName(String deptName) {
    this.deptName = deptName;
  }

  /**
   * 获取
   * @return orderNum
   */
  public Long getOrderNum() {
    return orderNum;
  }

  /**
   * 设置
   * @param orderNum
   */
  public void setOrderNum(Long orderNum) {
    this.orderNum = orderNum;
  }

  /**
   * 获取
   * @return leader
   */
  public String getLeader() {
    return leader;
  }

  /**
   * 设置
   * @param leader
   */
  public void setLeader(String leader) {
    this.leader = leader;
  }

  /**
   * 获取
   * @return phone
   */
  public String getPhone() {
    return phone;
  }

  /**
   * 设置
   * @param phone
   */
  public void setPhone(String phone) {
    this.phone = phone;
  }

  /**
   * 获取
   * @return email
   */
  public String getEmail() {
    return email;
  }

  /**
   * 设置
   * @param email
   */
  public void setEmail(String email) {
    this.email = email;
  }

  /**
   * 获取
   * @return status
   */
  public String getStatus() {
    return status;
  }

  /**
   * 设置
   * @param status
   */
  public void setStatus(String status) {
    this.status = status;
  }

  /**
   * 获取
   * @return delFlag
   */
  public String getDelFlag() {
    return delFlag;
  }

  /**
   * 设置
   * @param delFlag
   */
  public void setDelFlag(String delFlag) {
    this.delFlag = delFlag;
  }

  /**
   * 获取
   * @return createBy
   */
  public String getCreateBy() {
    return createBy;
  }

  /**
   * 设置
   * @param createBy
   */
  public void setCreateBy(String createBy) {
    this.createBy = createBy;
  }

  /**
   * 获取
   * @return createTime
   */
  public Date getCreateTime() {
    return createTime;
  }

  /**
   * 设置
   * @param createTime
   */
  public void setCreateTime(Date createTime) {
    this.createTime = createTime;
  }

  /**
   * 获取
   * @return updateBy
   */
  public String getUpdateBy() {
    return updateBy;
  }

  /**
   * 设置
   * @param updateBy
   */
  public void setUpdateBy(String updateBy) {
    this.updateBy = updateBy;
  }

  /**
   * 获取
   * @return updateTime
   */
  public Date getUpdateTime() {
    return updateTime;
  }

  /**
   * 设置
   * @param updateTime
   */
  public void setUpdateTime(Date updateTime) {
    this.updateTime = updateTime;
  }

  public String toString() {
    return "SysDept{deptId = " + deptId + ", parentId = " + parentId + ", ancestors = " + ancestors + ", deptName = " + deptName + ", orderNum = " + orderNum + ", leader = " + leader + ", phone = " + phone + ", email = " + email + ", status = " + status + ", delFlag = " + delFlag + ", createBy = " + createBy + ", createTime = " + createTime + ", updateBy = " + updateBy + ", updateTime = " + updateTime + "}";
  }
}
